//
//  ShufView.h
//  轮播图
//
//  Created by dllo on 16/8/4.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <UIKit/UIKit.h>

struct ShufImageLocation
{
    CGFloat left;
    CGFloat bottom;
    CGFloat maxLength;
    CGFloat height;
    
}typedef UIShufImageLocation;

@class ShufCollectionViewCell;
@protocol ShufViewDelegate <NSObject>

- (void)cellSubviewStyle:(ShufCollectionViewCell *)cell;

@end


#pragma mark <!------------- ShufView -------------->
@interface ShufView : UIView

@property (nonatomic, strong) NSArray *images;
@property (nonatomic, strong, readonly) UIPageControl *pageControl;
@property (nonatomic, assign) UIShufImageLocation imageLocation;

@property (nonatomic, weak) id<ShufViewDelegate>delegate;

- (instancetype)initWithFrame:(CGRect)frame andImages:(NSArray<NSString *> *)images;

@end

#pragma mark <!------------- ShufLabel -------------->

@interface ShufLabel : UILabel

@property (nonatomic, assign) UIShufImageLocation imageLocation;

@end


#pragma mark <!------------- ShufCollectionViewCell -------------->

@interface ShufCollectionViewCell : UICollectionViewCell

@property (nonatomic, strong) NSString *image;
@property (nonatomic, strong, readonly) ShufLabel *title;
@property (nonatomic, strong, readonly) UIImageView *imageView;


@end


